package com.crazymaker.demo.proxy.FeignMock;

import com.alibaba.fastjson.JSONObject;
import com.crazymaker.springcloud.common.result.RestOut;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j
public class ProxyTester
{
    @Test
    public void test()
    {

        SimpleDemoClient proxy =
                SimpleInvocationHandler.newInstance(SimpleDemoClient.class);

        RestOut<JSONObject> responseData = proxy.hello();
        log.info(responseData.toString());

        RestOut<JSONObject> echo = proxy.echo("proxyTest" );
        log.info(echo.toString());

    }
}
